package com.spring.component;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author liushihua
 * @since 2018年02月26日
 */
@SpringBootApplication
@ComponentScan(basePackages = "com.spring.component")
// 扫描servlet、filter、listener的注册注解
@ServletComponentScan(basePackages = "com.spring.component")
// 如果ConfigurationProperties加载不到配置，可以该注解指定配置类
// @EnableConfigurationProperties(JobProperties.class)
public class Application {

  public static void main(String[] args) {
    new SpringApplicationBuilder(Application.class).web(true).run(args);
  }

}
